import { axios } from '@/utils/request'

/**
 * api接口列表
 */
const api = {
  log: '/user.balance/log',
  // 提现 申请
  withdrawal: '/distributor.DistributorIndex/withdrawalList',
  // 审核 提现
  examine: '/distributor.DistributorIndex/examine'
}

/**
 * 列表记录
 */
export function log (params) {
  return axios({
    url: api.log,
    method: 'get',
    params
  })
}
/**
 * 要邀请记录
 */
export function withdrawal (params) {
  return axios({
    url: api.withdrawal,
    method: 'get',
    params
  })
}

/**
 * 审核 提现
 */
export function examine (data) {
  return axios({
    url: api.examine,
    method: 'post',
    data
  })
}
